package com.backend.district.service.impl;

import java.util.List;
import com.backend.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.backend.district.mapper.SysDistrictMapper;
import com.backend.district.domain.SysDistrict;
import com.backend.district.service.ISysDistrictService;

/**
 * 省市县地址Service业务层处理
 * 
 * @author fusi
 * @date 2024-10-11
 */
@Service
public class SysDistrictServiceImpl implements ISysDistrictService {
    @Autowired
    private SysDistrictMapper sysDistrictMapper;
    /**
     * 查询省市县地址列表
     *
     *
     * @return 省市县地址
     */
    @Override
    public List<SysDistrict> selectSysDistrictList(Long id) {
        return sysDistrictMapper.selectSysDistrictList(id);
    }

    @Override
    public List<SysDistrict> selectTopCityList() {
        return sysDistrictMapper.selectTopCityList();
    }

    @Override
    public List<SysDistrict> selectCityListByName(String name) {
        return sysDistrictMapper.selectCityListByName(name);
    }

}
